<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/system/wechat/Wxgzh_login_map.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/mytable/wechat/Wxgzh_login_map.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'id',
                footer: "Foots",
                cnName: '微信公众号登录',
                name: 'wechat/Wxgzh_login_map',
                url: "/Wxgzh_login_map/",
                sortName: "id"
            });
            const editFormFields = ref({"openid":"","uname":"","jdtime":""});
            const editFormOptions = ref([[{"title":"openid","field":"openid"},
                               {"title":"登录名","field":"uname"}],
                              [{"title":"注册时间","field":"jdtime","type":"datetime"}]]);
            const searchFormFields = ref({"openid":"","uname":"","pwd":"","jdtime":""});
            const searchFormOptions = ref([[{"title":"openid","field":"openid"},{"title":"登录名","field":"uname"},{"title":"密码","field":"pwd"},{"title":"注册时间","field":"jdtime"}]]);
            const columns = ref([{field:'openid',title:'openid',type:'string',link:true,width:180,align:'left',sort:true},
                       {field:'uname',title:'登录名',type:'string',width:180,align:'left'},
                       {field:'pwd',title:'密码',type:'string',width:180,hidden:true,readonly:true,align:'left'},
                       {field:'jdtime',title:'注册时间',type:'datetime',width:110,align:'left',sort:true},
                       {field:'id',title:'id',type:'guid',width:110,hidden:true,readonly:true,require:true,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
